#pragma once

#include <QtGui>

class AlphaBaseWidget : public QWidget
{	
	Q_OBJECT

public:
	AlphaBaseWidget(QWidget* wgtParent = 0);
	~AlphaBaseWidget(){}

public slots:
	void updateAlpha(QPixmap &pixmap);
	void setLayered();

protected:
	virtual void paintEvent(QPaintEvent *event);
	virtual void resizeEvent(QResizeEvent *e);

	QPixmap drawCtrl(QWidget * widget);
	QRegion childRegion;

public:
	QPixmap m_WidgetMask;
	int m_Alpha;
};